﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeuralNetworks.ActivationFunctions
{
    /// <summary>
    /// Konieczna do obsłużenia warstwy wejściowej.
    /// </summary>
    class IdentityFunction : IActivationFunction
    {
        public IdentityFunction() {}

        public double Compute(double x)
        {
            return x;
        }
        public double ComputeDifferential(double x)
        {
            return x;
        }
    }
}
